#ifndef __KB_API_TAB_H
#define __KB_API_TAB_H

/*_____ I N C L U D E S ____________________________________________________*/
#include <SN32F280.h>
#include <SN32F200_Def.h>

#define		API_EXHEADER_ADDR					0x00000

#define		API_TABLE_ADDR_HEAER			(0x00009000-128)
#define		API_INFO_ADDR							API_TABLE_ADDR_HEAER						//0x9000
#define		API_INFO_LEN							0x20

#define		API_GM_ADDR								0x00009000											//(API_INFO_ADDR+API_INFO_LEN*4)
#define		API_GM_LEN								0x10

#define		API_KEY_ADDR							0x00009400											//(API_GM_ADDR+API_GM_LEN*4)			
#define		API_KEY_LEN								0x90

#define		API_LED_ADDR							0x00009800											//(API_KEY_ProADDR+API_KEY_ProLEN*4)						
#define		API_LED_LEN								0x10

#define		API_LED_CON_ADDR					0x00009C00
#define		API_LED_CONLEN						0x90

#define		API_MACRO_ADDR						0x0000A000													//(API_LED_ProADDR+API_LED_ProLEN*4)	
#define		API_MACRO_LEN							0x300

#define		API_FN_KEY_ADDR						0x0000AC00
#define		API_FN_KEY_LEN						0x90

extern const uint32_t API_INFOR_TAB[] __attribute__((at(API_INFO_ADDR)));
extern const uint32_t API_GM_TAB[] __attribute__((at(API_GM_ADDR)));
extern const uint32_t API_KEY_TAB[] __attribute__((at(API_KEY_ADDR)));
extern const uint32_t API_LED_TAB[] __attribute__((at(API_LED_ADDR)));
extern const uint32_t API_LED_CON_TAB[] __attribute__((at(API_LED_CON_ADDR)));
extern const uint32_t API_MACRO_TAB[] __attribute__((at(API_MACRO_ADDR)));
extern const uint32_t API_FN_KEY_TAB[] __attribute__((at(API_FN_KEY_ADDR)));
#endif

